import ajax from '@/utils/ajax'
import type { CustomResponse } from 'uni-ajax'
import type * as dyUserCodeModel from '@/api/model/dyUserCodeModel'
class DyUserCodeService {
    /**
     * 获取口令
     */
    getOne(): Promise<CustomResponse<string>> {
      return ajax.get('/tools/dyUserCode/getOne',)
    }
    /**
     * 获取邀请码
     */
    getBindingCode(): Promise<CustomResponse<dyUserCodeModel.IGetBindingCodeResponse>> {
      return ajax.get('/tools/dyUserCode/getBindingCode',)
    }
    /**
     * 绑定code
     */
    bindingCode(params:dyUserCodeModel.IBindingCodeParam): Promise<CustomResponse<null>> {
      return ajax.get('/tools/dyUserCode/bindingCode',params)
    }
    
  }
  
  export default new DyUserCodeService()
  